package net.guoyixian.admin.service;

import net.guoyixian.admin.mapper.StoreMapper;
import net.guoyixian.admin.pojo.Store;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

/**
 * 用户service
 * 
 */
@Service
public class StoreService {
	@Autowired
	private StoreMapper storeMapper;

	public PageList<Store> queryList(PageBounds bounds,String storeName,Integer audit){
		return storeMapper.queryList(bounds,storeName,audit);
	}
	
	public Integer deleteByIDS(String ids){
		String[] idss = ids.split(",");
		return storeMapper.deleteByIDS(idss);
	}
	
	public Integer queryAccount(String account){
		return storeMapper.queryAccount(account);
	}
	
	public void save(Store store){
		storeMapper.save(store);
	}
	
}